<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>节税计算器</title>
    <link rel="stylesheet" href="./css/normalize.css">
    <link rel="stylesheet" href="./css/index.css">
</head>

<body>
    <div id="app">
        <div class="logo">
            <img src="./image/logo.png" alt="">
        </div>
        <div class="title">算一算,可以帮企业降低多少税收?</div>
        <div class="index-item">
            <div>
                <img src="./image/money.png" alt="">
                企业收入:(单位：<b class="red">万元</b>)
            </div>
            <input type="text" v-model.number="shouru" placeholder="请输入企业收入">
        </div>
        <div class="index-item">
            <div>
                <img src="./image/lirun.png" alt="">
                税前利润:(单位：<b class="red">万元</b>)
            </div>
            <input type="text" v-model.number="lirun" placeholder="请输入企业税前利润">
        </div>
        <button class="cesuan" @click="indexSumClick()">点击测算</button>
    </div>
    <script src="./js/vue.min.js"></script>
    <script>
        new Vue({
            el: '#app',
            data: {
                shouru: null,
                lirun: null,
            },
            methods: {
                indexSumClick() {
                    if (this.lirun && this.shouru) {
                       location.href='./sumResult.html'
                    }

                }
            },
        })
    </script>

</body>

</html>